from selenium import webdriver
import time

driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
driver.maximize_window()

list=[
    {
        'name':'BDUSS',
        'value':'tUOENrMURJOFRyYTREUFFrZVVBSXdBVGsteDhQbC1PQUdVWlhMY3JYMVdJa1ZqSUFBQUFBJCQAAAAAAAAAAAEAAAAbsLCCt7PYsrm-wsN0SFo1ZTQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFaVHWNWlR1jQ2'
    },
    {
        'name':'BDUSS_BFESS',
        'value':'tUOENrMURJOFRyYTREUFFrZVVBSXdBVGsteDhQbC1PQUdVWlhMY3JYMVdJa1ZqSUFBQUFBJCQAAAAAAAAAAAEAAAAbsLCCt7PYsrm-wsN0SFo1ZTQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFaVHWNWlR1jQ2'

    }
]

for i in list:
    driver.add_cookie(i)

driver.refresh()

time.sleep(5)
driver.quit()